home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 7
/
Aminet 7 - August 1995.iso
/
Aminet
/
comm
/
mebbs
/
wall.lha
/
WALL
next >
Wrap
Text File
|
1994-05-27
|
4KB
|
185 lines
/**/
signal on ERROR
parse arg LineNumber
DoorName = "WALL"
if( ~show( 'l', "mebbsarexx.library" ) )then do
say "Opening mebbsarexx.library"
if( ~addlib( "mebbsarexx.library", 0, -30, 0 ) )then do
say "Could not open library"
exit 10
end
end
call GetVar DoorName,LineNumber,1
username=result
call GetVar DoorName,LineNumber,4
city=result
call GetVar DoorName,LineNumber,8
gfx=result
call GetVar DoorName,LineNumber,11
calls=result
call GetVar DoorName,LineNumber,12
uploads=result
call GetVar DoorName,LineNumber,13
downloads=result
call GetVar DoorName,LineNumber,15
path=result
call GetVar DoorName,LineNumber,18
total_calls=result
call GetVar DoorName,LineNumber,17
all_calls=result
call GetVar DoorName,LineNumber,20
level=result
username=upper(username)
rname=space(username,1,'_')
ac=result
f =0
mainpath='T:'
a=0
fname3 = "doors:wall/wallmain.gr1"
lng=length(total_calls)
CLS = 'H'
RED ='
'
GRN ='
'
GREEN ='
'
YEL ='
'
BLU ='
'
VIO ='
'
WHT ='
'
BLA2 ='
'
RED2 ='
'
GRN2 ='
'
YEL2 ='
'
BLU2 ='
'
RESET ='
'
CYAN ='
'
BLUEY ='
'
RESET ='
'
ENTER:
do forever
call ReadFile DoorName,LineNumber,fname3
call Message DoorName,LineNumber,"",1
call HotKey DoorName,LineNumber,"Please make your selection "|| username || " >"
choice=UPPER(result)
if choice = 'R' then call WALL
else if choice = 'W' then call WRITEWALL
else if choice = '3' then call WRITEWALL
else if choice = 'Q' then call end_it
call ReadFile DoorName,LineNumber,fname3
call ReadFile DoorName,LineNumber,fname3
call ReadFile DoorName,LineNumber,fname3
end
CALL ENTER
WALL:
z = 0
count = 0
fname1 = "doors:wall/wall.gr2"
filename='doors:wall/walldata'
fname2 = "doors:wall/wallsep.txt"
call ReadFile DoorName,LineNumber,fname1
call Open readwall,(filename), 'R'
do until eof(readwall)
zline.z=readln(readwall)
z=z+1
end
call close(readwall)
call Message DoorName,LineNumber,"",1
call ReadFile DoorName,LineNumber,fname2
z=z-5
do forever
call Message DoorName,LineNumber,zline.z||" pulls zipper down and sprays on the wall the following:"||yel,1
count=count+1
z=z+1
call Message DoorName,LineNumber,zline.z,1
z=z+1
call Message DoorName,LineNumber,zline.z,1
z=z+1
call Message DoorName,LineNumber,zline.z,1
call ReadFile DoorName,LineNumber,fname2
z=z-7
if z <= 0 then call select2
if count > 4 then call select
end
call ENTER
SELECT:
call Message DoorName,LineNumber,"",1
call HotKey DoorName,LineNumber,cyan||"Press Y/n to Continue"
fil=upper(result)
call Message DoorName,LineNumber,"",1
call ReadFile DoorName,LineNumber,fname2
if fil='Y' then do
count = 0
return
end
else if fil='N' then call ENTER
SELECT2:
call HotKey DoorName,LineNumber,grn||"End of file - You hear cops in the distance."||yel||"Press Key"
call end_it
WRITEWALL:
wpath="doors:wall/walldata"
call ReadFile DoorName,LineNumber,'doors:wall/wall.gr2'
call open Wall,(wpath), 'A'
call Message DoorName,LineNumber,"",1
call Message DoorName,LineNumber,"",1
call Message DoorName,LineNumber,"Lets have fun - Enter your text below (three lines):",1
call Message DoorName,LineNumber,"",1
call Prompt DoorName,LineNumber,">",60
wall1=result
call Prompt DoorName,LineNumber,">",60
wall2=result
call Prompt DoorName,LineNumber,">",60
wall3=result
call Message DoorName,LineNumber,cyan"Are you sure you want to write that - (Y/N)?",1
call HotKey DoorName,LineNumber,""
option=upper(result)
if option ~= 'Y' then call end_it
call writeln wall,cyan||username
call writeln wall,green||wall1
call writeln wall,wall2
call writeln wall,wall3
call close wall
call Message DoorName,LineNumber,"",1
call Message DoorName,LineNumber,"
Vandal Alert - Cops are heard in the distance - Graphitti written.",1
call Message DoorName,LineNumber,"",1
call HotKey DoorName,LineNumber,grn||"End ."||yel||"Press Key"
call ENTER
call end_it
IOERR:
call Exit_Door DoorName,LineNumber
exit 10
ERROR:
call Exit_Door DoorName,LineNumber
exit 10
end_it:
call Exit_Door DoorName,LineNumber
exit 0